package com.company.book_store.service;

import com.company.book_store.dao.AdmindaoImpl;
import com.company.book_store.dao.Iadmindao;
import com.company.book_store.pojo.Admin;

public class Adminservicce implements Iadminservice{
    private Iadmindao iadmindao=new AdmindaoImpl();
    @Override
    public int selectbyadnandpsw(Admin admin) {
        if(iadmindao.selectByadnandpsw(admin)!=null)
        {
            return 1;
        }
        return 0;
    }

}
